package com.zj.study.utils.validation.validator.max;


import com.zj.study.utils.validation.annotation.ValidateSupport;
import com.zj.study.utils.validation.annotation.constraint.Max;
import org.springframework.lang.NonNull;

/**
 * @author 谭耀飞
 * @since 2020.11.0
 */
@ValidateSupport(Long.class)
public class MaxValidatorForLong extends AbstractMaxValidator<Long> {

  @Override
  public boolean compare(@NonNull Max max, @NonNull Long value) {
    return value <= max.value();
  }

}
